#! /usr/bin/env python
# -*- coding: utf-8 -*-

# *************************************************************
#     Filename @  extract_comment.py
#       Author @  Huoty
#  Create date @  2016-04-07 14:46:45
#  Description @  
# *************************************************************

import csv
import sys

# Script starts from here

if len(sys.argv) != 2:
    print "Usage:\t extract_comment.py <csvfile>"

reader = csv.DictReader(open(sys.argv[1]))
for row in reader:
    if len(row["Comment"]) != 0:
        print "".join([row["Field"].strip(), '|', row["Comment"]])


